Next | Prev | Up | Top | Contents | Index

Checking Logical Volumes With lvck

As described in the section "lv Logical Volumes" in Chapter 6, the lvck command is used to check the consistency of logical volumes.

To check every logical volume for which there is an entry in /etc/lvtab, give this command:

# lvck 
To check only one entry in /etc/lvtab, give the name of a logical volume device (the first field in the /etc/lvtab entry), for example:

# lvck lv0 
The -d option of lvck facilitates re-creation of an lvtab for the system, if necessary. You might use this option if, for example, /etc/lvtab became corrupted or if you somehow lost track of which disks were connected during a system reconfiguration. With the -d flag, lvck ignores /etc/lvtab and searches through all disks connected to the system in order to locate all logical volumes present. It prints a description of each logical volume found in a form resembling an lvtab entry. For example:

# lvck -d 
# The following logical volumes are present and correct: 

# Volume id:   IRIX: Mon Jun  5 16:58:15 1995

lv?:Zebra Project:devs=/dev/dsk/dks0d2s0,       \        /dev/dsk/dks0d3s0
...
lvck can print out any logical volume label that exists for a block device file. The output resembles an lvtab entry. This mode of lvck is purely informational; no checks are made of any other devices mentioned in the logical volume label. To print the label, invoke lvck with the block device file, for example:

# lvck /dev/dsk/dks0d2s7 

# Volume id:   IRIX: Thu Oct  5 16:29:33 1995

lv?:Project Data:devs=/dev/dsk/dks0d2s7,        \
        /dev/dsk/dks0d3s7
Possible errors and the messages from lvck are described in the lvck(1M) reference page.



Next | Prev | Up | Top | Contents | Index